package com.frank.threadPool;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author 小石潭记
 * @date 2021/4/3 11:09
 * @Description: ${todo}
 */
public class Test4 {
    public static void main(String[] args) {
        // 自定义线程池
        // corePoolSize：核心员工 maximumPoolSize - 非核心员工
        // maximumPoolSize：最大的线程数
        // 非核心员工：maximumPoolSize - corePoolSize
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(100,
                100,
                0L,
                TimeUnit.MILLISECONDS,
                new LinkedBlockingQueue<Runnable>());
    }
}
